Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔨 Refactor/types #65

Merged
merged 3 commits into from
Sep 21, 2024

Conversation

MEHRSHAD-MIRSHEKARY
Copy link
Collaborator

  • Added type aliases for various notification-related models and parameters:
    • Recipient: Optional user model representing a notification recipient.
    • Recipients: Union type for a single user, queryset, or list of users.
    • Groups: Union type for a single group, queryset, or list of groups.
    • OptConditions: Optional query conditions using Django's Q object.
    • Link: Optional string for notification links.
    • Actor: Represents a model that acts on behalf of the user.
    • Target: Optional model representing the target of the notification.
    • ActionObject: Optional model representing the action object related to the notification.
    • Data: Optional JSONField for additional data related to the notification.
    • Description: Optional string for a description of the notification.

Closes #64

- Added type aliases for various notification-related models and parameters:
  - Recipient: Optional user model representing a notification recipient.
  - Recipients: Union type for a single user, queryset, or list of users.
  - Groups: Union type for a single group, queryset, or list of groups.
  - OptConditions: Optional query conditions using Django's Q object.
  - Link: Optional string for notification links.
  - Actor: Represents a model that acts on behalf of the user.
  - Target: Optional model representing the target of the notification.
  - ActionObject: Optional model representing the action object related to the notification.
  - Data: Optional JSONField for additional data related to the notification.
  - Description: Optional string for a description of the notification.
Copy link
Contributor

@ARYAN-NIKNEZHAD ARYAN-NIKNEZHAD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved 👌

@ARYAN-NIKNEZHAD ARYAN-NIKNEZHAD merged commit d552ea1 into Lazarus-org:main Sep 21, 2024
4 checks passed
@MEHRSHAD-MIRSHEKARY MEHRSHAD-MIRSHEKARY deleted the refactor/types branch September 26, 2024 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing types constant file for type annotations
2 participants